package com.qcby.byc.demo0422.controller;

import com.qcby.byc.demo0422.entity.Depart;
import com.qcby.byc.demo0422.entity.Person;
import com.qcby.byc.demo0422.service.DepartService;
import com.qcby.byc.demo0422.service.PersonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @className: PersonController
 * @description:
 * @author: lxt
 * @create: 2021-04-22 17:19
 **/
@RestController
@RequestMapping("depart")
public class DepartController {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private DepartService departService;



    @GetMapping("getById1")
    public Depart getById1(@RequestParam Long id){
        return departService.getById1(id);
    }



}
